package com.ybkj.daijia.server.mc;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ybkj.daijia.server.model.Area;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 乘客所属企业
 *
 * @author Administrator
 */
public class Enterprise implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private String name;            //企业名称
    private String address;            //企业地址
    private String memo;
    private boolean allowOverdraw;    //是否允许所有成员签单
    private Long grade_id;            //级别
    private String grade_name;            //级别
    private Long companyId;            //公司Id
    private String companyName;    //所属公司名称
    private BigDecimal drawMoney;        //可提现金额
    private BigDecimal nodrawMoney;    //不可提现金额
    private BigDecimal frozenMoney;        //冻结金额
    private String created;
    private String updated;
    private Integer version;
    private String appKey;            //用于区别系统
    private List<Passenger> passengers;    //企业下面的乘客
    private Long areaDaijiaId;
    private Area areaDaijia;
    private Long areaZhuancheId;
    private Area areaZhuanche;
    private Long areaPaotuiId;
    private Area areaPaotui;
    @JsonIgnore
    private Long drivingNumberTimes;

    public List<Passenger> getPassengers() {
        return passengers;
    }

    public void setPassengers(List<Passenger> passengers) {
        this.passengers = passengers;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    public boolean isAllowOverdraw() {
        return allowOverdraw;
    }

    public void setAllowOverdraw(boolean allowOverdraw) {
        this.allowOverdraw = allowOverdraw;
    }

    public Long getGrade_id() {
        return grade_id;
    }

    public void setGrade_id(Long grade_id) {
        this.grade_id = grade_id;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getUpdated() {
        return updated;
    }

    public void setUpdated(String updated) {
        this.updated = updated;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey == null ? null : appKey.trim();
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public BigDecimal getDrawMoney() {
        if (null != drawMoney) {
            return drawMoney.setScale(2, BigDecimal.ROUND_HALF_UP);
        }
        return drawMoney;
    }

    public void setDrawMoney(BigDecimal drawMoney) {
        this.drawMoney = drawMoney;
    }

    public BigDecimal getNodrawMoney() {
        if (null != nodrawMoney) {
            return nodrawMoney.setScale(2, BigDecimal.ROUND_HALF_UP);
        }
        return nodrawMoney;
    }

    public void setNodrawMoney(BigDecimal nodrawMoney) {
        this.nodrawMoney = nodrawMoney;
    }

    public BigDecimal getFrozenMoney() {
        return frozenMoney;
    }

    public void setFrozenMoney(BigDecimal frozenMoney) {
        this.frozenMoney = frozenMoney;
    }

    public Long getAreaDaijiaId() {
        return areaDaijiaId;
    }

    public void setAreaDaijiaId(Long areaDaijiaId) {
        this.areaDaijiaId = areaDaijiaId;
    }

    public Area getAreaDaijia() {
        return areaDaijia;
    }

    public void setAreaDaijia(Area areaDaijia) {
        this.areaDaijia = areaDaijia;
    }

    public Long getAreaZhuancheId() {
        return areaZhuancheId;
    }

    public void setAreaZhuancheId(Long areaZhuancheId) {
        this.areaZhuancheId = areaZhuancheId;
    }

    public Area getAreaZhuanche() {
        return areaZhuanche;
    }

    public void setAreaZhuanche(Area areaZhuanche) {
        this.areaZhuanche = areaZhuanche;
    }

    public Long getAreaPaotuiId() {
        return areaPaotuiId;
    }

    public void setAreaPaotuiId(Long areaPaotuiId) {
        this.areaPaotuiId = areaPaotuiId;
    }

    public Area getAreaPaotui() {
        return areaPaotui;
    }

    public void setAreaPaotui(Area areaPaotui) {
        this.areaPaotui = areaPaotui;
    }

    public String getGrade_name() {
        if (null == grade_name) {
            return "";
        }
        return grade_name;
    }

    public void setGrade_name(String grade_name) {
        this.grade_name = grade_name;
    }

    public Long getDrivingNumberTimes() {
        if (null == drivingNumberTimes) {
            return 0L;
        }
        return drivingNumberTimes;
    }

    public void setDrivingNumberTimes(Long drivingNumberTimes) {
        this.drivingNumberTimes = drivingNumberTimes;
    }


}